#ifndef UPLOADBUTTON_H
#define UPLOADBUTTON_H

#include <QWidget>
#include <QPushButton>
#include <QFile>
#include <QUrl>
#include <QHttpPart>
#include <QFileDialog>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QJsonObject>
#include <QByteArray>
#include <QJsonDocument>

class uploadbutton : public QPushButton
{
    Q_OBJECT
public:
    explicit uploadbutton(const QString& base_url,QWidget *parent = nullptr);

public slots:
    void upLoad();//按钮点击构建请求发送
    void handerUpLoad();//响应到达处理函数
private:
    QString base_url;
    QNetworkAccessManager* manager;
    QNetworkReply* respons;
};

#endif // UPLOADBUTTON_H
